#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;

int main()
{
    int n;
    cin >> n;
    vector<int> arr(n);
    for (int i = 0; i < n; i++)
        cin >> arr[i];

    vector<int> num(51, 0);
    for (auto& e : arr)
    {
        num[e]++;
    }
    for (int i = 0; i < 51; i++)
    {
        if (num[i])
            cout << i << ":" << num[i] << endl;
    }
}